# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tumbler
pkgver=4.16.0
pkgrel=1
pkgdesc="D-Bus thumbnail service"
url="http://git.xfce.org/xfce/tumbler"
arch="all !riscv64" # limited by webkit2gtk via libgepub
license="GPL-2.0-or-later"
makedepends="autoconf automake curl-dev dbus-glib-dev ffmpegthumbnailer-dev
	gst-plugins-base-dev gtk+2.0-dev libgepub-dev libgsf-dev
	libjpeg-turbo-dev libtool poppler-dev xfce4-dev-tools"
subpackages="$pkgname-dev $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/xfce-mirror/tumbler/archive/tumbler-$pkgver.tar.gz"
builddir="$srcdir/tumbler-tumbler-$pkgver"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="9473b781d5bbbb0c3fe9a161d8b7b8feeef6c61422082011b4448a60f45ff4c8c4e62eb220e65f85a741deb0d4433f046f4189aec71fa0906275255f678303d5  tumbler-4.16.0.tar.gz"
